package com.example.designpatterns.adapter.classadapter;

/**
 * 测试
 */
public class Person {

    public void speakTo(OurFriend friend) {
        System.out.println("人：你在干嘛？");
        friend.speak();
    }

    public static void main(String[] args) {
        Person person = new Person();
        OurFriend catFriend = new CatFriend();
        OurFriend dogFriend = new DogFriend();
        person.speakTo(dogFriend);
        person.speakTo(catFriend);
    }
}

